home *** CD-ROM | disk | FTP | other *** search
- #
- # (C) Tenable Network Security
- #
- #
- # The text of this plugin is (C) Red Hat Inc.
-
- if ( ! defined_func("bn_random") ) exit(0);
- if(description)
- {
- script_id(16017);
- script_version ("$Revision: 1.1 $");
- script_cve_id("CAN-2004-0946", "CAN-2004-1014");
-
- name["english"] = "RHSA-2004-583: nfs";
-
- script_name(english:name["english"]);
-
- desc["english"] = '
-
- An updated nfs-utils package that fixes various security issues is now
- available.
-
- The nfs-utils package provides a daemon for the kernel NFS server and
- related tools, providing a much higher level of performance than the
- traditional Linux NFS server used by most users.
-
- This package also contains the showmount program. Showmount queries
- the mount daemon on a remote host for information about the NFS
- (Network File System) server on the remote host.
-
- SGI reported that the statd daemon did not properly handle the SIGPIPE
- signal. A misconfigured or malicious peer could cause statd to crash,
- leading to a denial of service. The Common Vulnerabilities and Exposures
- project (cve.mitre.org) has assigned the name CAN-2004-1014 to this issue.
-
- Arjan van de Ven discovered a buffer overflow in rquotad. On 64-bit
- architectures, an improper integer conversion can lead to a buffer
- overflow. An attacker with access to an NFS share could send a specially
- crafted request which could lead to the execution of arbitrary code. The
- Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned
- the name CAN-2004-0946 to this issue.
-
- Additionally, this updated package addresses the following issues:
-
- - The UID of the nfsnobody account has been fixed for 32-bit and 64-bit
- machines. Because the st_uid field of the stat structure is an unsigned
- integer, an actual value of -2 cannot be used when creating the account, so
- the decimal value of -2 is used. On a 32-bit machine, the decimal value of
- -2 is 65534 but on a 64-bit machine it is 4294967294. This errata enables
- the nfs-utils post-install script to detect the target architecture, so an
- appropriate decimal value is used.
-
- All users of nfs-utils should upgrade to this updated package, which
- resolves these issues.
-
-
-
-
- Solution : http://rhn.redhat.com/errata/RHSA-2004-583.html
- Risk factor : High';
-
- script_description(english:desc["english"]);
-
- summary["english"] = "Check for the version of the nfs packages";
- script_summary(english:summary["english"]);
-
- script_category(ACT_GATHER_INFO);
-
- script_copyright(english:"This script is Copyright (C) 2004 Tenable Network Security");
- family["english"] = "Red Hat Local Security Checks";
- script_family(english:family["english"]);
-
- script_dependencies("ssh_get_info.nasl");
-
- script_require_keys("Host/RedHat/rpm-list");
- exit(0);
- }
-
- include("rpm.inc");
- if ( rpm_check( reference:"nfs-utils-1.0.6-33EL", release:"RHEL3") )
- {
- security_hole(0);
- exit(0);
- }
-
- if ( rpm_exists(rpm:"nfs-", release:"RHEL3") )
- {
- set_kb_item(name:"CAN-2004-0946", value:TRUE);
- set_kb_item(name:"CAN-2004-1014", value:TRUE);
- }
-
- set_kb_item(name:"RHSA-2004-583", value:TRUE);
-